package net.socket;

import java.net.Socket;

public class LowPortScanner
{
	@SuppressWarnings("unused")
	public static void main(String[] args)
	{
		String host = "localhost";
		if(args.length>0)
		{
			host = args[0];
		}
		for (int i = 1024; i < 65535; i++)
		{
			try
			{
				Socket s = new Socket(host,i);
				System.out.println("socket"+i);
			}
			catch (Exception e)
			{
				System.out.println(e.getMessage());
				continue;
			}
		}
	}
}
